package yogaModel

import "time"

type ReqDateList struct {
	Id                 int `json:"id"`
	ReservationDate    int `json:"reservation_date" binding:"required" required_err:"参数缺失【reservation_date】"`
	ReservationDay     int `json:"reservation_day" binding:"required" required_err:"参数缺失【reservation_day】"`
	ReservationMorning struct {
		StartTime string `json:"start_time"`
		EndTime   string `json:"end_time"`
	} `json:"reservation_morning" binding:"required" required_err:"参数缺失【reservation_morning】"`
	ReservationAfternoon struct {
		StartTime string `json:"start_time"`
		EndTime   string `json:"end_time"`
	} `json:"reservation_afternoon" binding:"required" required_err:"参数缺失【reservation_afternoon】"`
	ClassId   int       `json:"class_id" binding:"required" required_err:"参数缺失【class_id】"`
	Acid      int       `json:"acid"`
	SubMchId  string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	ClassType int       `json:"class_type"`
	DeletedAt time.Time `xorm:"deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
}
type ReqDate struct {
	Id                   int       `json:"id"`
	ReservationDate      int       `json:"reservation_date" binding:"required" required_err:"参数缺失【reservation_date】"`
	ReservationDay       int       `json:"reservation_day" binding:"required" required_err:"参数缺失【reservation_day】"`
	ReservationMorning   string    `json:"reservation_morning" binding:"required" required_err:"参数缺失【reservation_morning】"`
	ReservationAfternoon string    `json:"reservation_afternoon" binding:"required" required_err:"参数缺失【reservation_afternoon】"`
	ClassId              int       `json:"class_id" binding:"required" required_err:"参数缺失【class_id】"`
	Acid                 int       `json:"acid"`
	SubMchId             string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	ClassType            int       `json:"class_type"`
	ClassName            string    `json:"class_name"`
	DeletedAt            time.Time `xorm:"deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
	AppointmentsNumber   int       `json:"appointments_number"`
}
type ReqJoinDate struct {
	Id                   int       `json:"id"`
	ReservationDate      int       `json:"reservation_date" binding:"required" required_err:"参数缺失【reservation_date】"`
	ReservationDay       int       `json:"reservation_day" binding:"required" required_err:"参数缺失【reservation_day】"`
	ReservationMorning   string    `json:"reservation_morning" binding:"required" required_err:"参数缺失【reservation_morning】"`
	ReservationAfternoon string    `json:"reservation_afternoon" binding:"required" required_err:"参数缺失【reservation_afternoon】"`
	ClassId              int       `json:"class_id" binding:"required" required_err:"参数缺失【class_id】"`
	Acid                 int       `json:"acid"`
	SubMchId             string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	ClassType            int       `json:"class_type"`
	ClassName            string    `json:"class_name"`
	DeletedAt            time.Time `xorm:"d.deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
	AppointmentsNumber   int       `json:"appointments_number"`
}
